package idv.arthur.string;

import java.util.ArrayList;

public class Substring {
	public static void main(String[] args) {
		
		String TOKEN="AAA";
		String kk = "ArthurAAASofiAAA";
		String res = kk.substring(0, (kk.length()- TOKEN.length()) );
		
		
		
		System.out.println(res);
	}
}
